package com.bangbang.service.impl;

import com.bangbang.pojo.TbMycourse;
import com.bangbang.mapper.TbMycourseMapper;
import com.bangbang.service.ITbMycourseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-08-12
 */
@Service
public class TbMycourseServiceImpl extends ServiceImpl<TbMycourseMapper, TbMycourse> implements ITbMycourseService {
    @Autowired
    private TbMycourseMapper mycourseMapper;
    @Override
    public List<TbMycourse> selectById(Integer userId) {
        List<TbMycourse> list =  mycourseMapper.selectByIdAll(userId);
        return list;
    }
}
